﻿using System.ComponentModel.Composition;
using System.Configuration;

namespace Neudesic.Pulse.Services
{
    /// <summary>
    /// Provides services for exposing configuration data.
    /// </summary>
    public static class ConfigurationService
    {

        /// <summary>
        /// Gets the service base address.
        /// </summary>
        /// <value>The service base address.</value>
        public static string ServiceBaseAddress
        {
            get { return ConfigurationManager.AppSettings["ServiceBaseAddress"]; }
        }

        /// <summary>
        /// Gets the pulse web address.
        /// </summary>
        /// <value>The pulse web address.</value>
        [Export("PulseWebAddress")]
        public static string PulseWebAddress
        {
            get { return ConfigurationManager.AppSettings["PulseWebAddress"]; }
        }

    }
}
